//*********************************************************************************
// Book.java           Author:20172323wyh
//********************************************************************************* 
public class Book
 {
    public static void main(String[] args)
    {}
    private String bookname;
    private String author;
    private String press;
    private String copyrightdate;
   
    public Book(String name,String writer,String publisher,String date)
    {
       bookname = name;
       author = writer;
       press = publisher;
       copyrightdate = date;
    }

    public String getName()
    {
       return bookname;
    }
    
    public String getWriter()
    {
       return author;
    }
    
    public String getPublisher()
    {
       return press;
    }
   
    public String getDate()
    {
       return copyrightdate;
    }

    public String toString()
    {
       return "Bookname: " + bookname + "\n" + "Author: " + author + "\n" + "Press: " + press + "\n" + "CopyrightDate: " + "\n" + copyrightdate;
    }
 }

 
